package com.walter.service;

import com.walter.condition.HelloCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;


@Conditional(HelloCondition.class)
public class HelloServiceConfiguration {

    @Bean
    @Autowired
    public ApplicationRunner runner() {
        return args -> {
            System.out.println("Hello World");
        };
    }
}